#include <iostream>
#include <stdlib.h>
#include<algorithm>
#include<cstdio>
#include<cmath>

double maxnorm_one(double a,double *u,int n)
{
  int i;
  for (i=1;i<=n;i++){
    u[i]=abs(u[i]);
    a=std::max(a,abs(u[i]));
  }
  return a;
}
